package cn.kilo.domain.service.pay;

import com.wechat.pay.java.service.payments.model.Transaction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author kilok
 */
public interface IWxChatPayService {

    String H5Pay(Integer money, String orderId, String ip);

    Map<String,String> callBack(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException;

    HashMap<String, Transaction> getPayInfo(String orderNo);

    void closeOrder(String orderId);

    void getPay();

}
